* {
    font-family: "Roboto", "sans-serif";
}

body {
    background: #eaeaea;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

nav {
    font-weight: 600;
    font-size: x-large;
    background: linear-gradient(to right, aliceblue, skyblue);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    margin: 40px auto;
    max-width: 1660px;
    transition: box-shadow 0.3s ease;
    margin-bottom: 25px;
}

nav:hover {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.nav-logo {
    height: 50px;
    margin-right: 5px;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo img {
    max-height: 100%;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

nav li {
    margin: 0 10px;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    padding: 8px 14px;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border-radius: 8px;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #444;
    transform: scale(1.02);
}

nav a.active {
    background-color: #29abe2;
    color: #ffffff;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 140px;
    box-shadow: 0px 6px 12px rgba(0,0,0,0.1);
    z-index: 1;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    border-radius: 8px;
    overflow: hidden;
}

.nav-dropdown-content a {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    color: #424242;
}

.nav-dropdown-content a:last-child {
    border-bottom: none;
}

.nav-dropdown-content a:hover {
    background-color: #e6f2ff;
    color: #29abe2;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-menu-icon {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #ffffff;
    padding: 8px;
    transition: transform 0.2s ease;
}

.nav-menu-icon:hover {
    transform: scale(1.05);
}

#nav-menu-toggle {
    display: none;
}

@media (max-width: 910px) {
    nav {
        font-size: 24px;
        flex-direction: row;
        align-items: center;
        padding: 10px 15px;
        margin: 10px;
        border-radius: 8px;
    }

    nav:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .nav-logo img {
        max-height: 90%;
        margin-top: 2.5%;
    }

    nav ul {
        z-index: 99;
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        overflow: hidden;
        position: absolute;
        top: 100%;
        left: 0;
        margin-top: 0;
    }

    #nav-menu-toggle:checked ~ ul {
        display: flex;
        max-height: 300px;
        overflow-y: auto; 
    }

    nav li {
        margin: 0;
        border-bottom: 1px solid #ddd;
        width: 100%;
    }

    nav li:last-child {
        border-bottom: none;
    }

    nav a {
        padding: 10px 15px;
        text-align: left;
        border-radius: 0;
        color: #333;
    }

    .nav-dropdown-content {
        position: relative;
        box-shadow: none;
        width: 100%;
        left: 0;
        transform: none;
        border-radius: 0;
    }
    .nav-menu-icon {
        font-size: 40px;
        display: block;
        align-self: center;
    }
}

footer {
    margin-top: 100px;
    color: aliceblue;
    background-color: #333;
    text-align: start;
}

footer a {
    position: relative;
    color: paleturquoise;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px; 
    background-color: aquamarine; 
    transition: transform 0.3s ease;
}

footer a:hover {
    color: aquamarine;
}

footer a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.footer-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}

.footer-section {
    padding: 0 2%;
    height: 150px;
    margin-bottom: 10px;
    flex: 1 1 200px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 5px;
}

.footer-bottom {
    background-color: #222;
    color: aliceblue;
    padding: 10px 0 10px 0;
    text-align: center;
}

.home {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 5% 0;
    justify-content: space-between;
}

.home-content {
    margin-top: 10px;
    padding: 10px;
    width: 650px;
}

.home-content h1 {
    font-size: 65px;
    line-height: 1.5;
}

.home-content p {
    font-size: 20px;
    margin: 30px 0 40px;
}

.home-video {
    margin-top: 60px;
    width: 840px;
    height: 600px;
}

.home-card-container {
    display: flex;
    margin-top: 100px;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 5%;
}

.home-card {
    margin-top: 60px;
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.home-card:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.home-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-card:hover .home-card-content {
    opacity: 1;
}

.home-card-content p {
    margin: 0 0 10px;
    font-size: 14px;
}

.home-card-content button {
    background-color: #00aaff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.home-card-content button:hover {
    background-color: #007acc;
}

.about-team-section {
    margin-top: 10px;
    padding: 50px 8%;
    text-align: center;
}

.about-team-section h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.about-team-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.about-team-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 200px;
    text-align: center;
}

.about-team-card h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.about-team-card p {
    font-size: 16px;
    color: #777;
}

.about-teacher {
    margin-top: 60px;
}

.about-teacher {
    font-size: 25px;
}

.about-map-section {
    padding: 10px 8%;
    text-align: center;
}

.about-map-section iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.contact_us_form {
    background: #FFFF;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 50px auto;
}

.contact_us_form h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.contact_us_form p {
    text-align: center;
    margin-bottom: 20px;
    color: #999;
}

.contact_us_form label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
    color: #333;
}

.contact_us_form input,
.contact_us_form select,
.contact_us_form textarea {
    width: 95%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.contact_us_form select {
    width: 97%;
}

.contact_us_form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.contact_us_form-buttons button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 900;
}

.contact_us_form-buttons a {
    background-color: #4CAF50;
    text-decoration: none;
    padding: 1px 20px;
    border-radius: 8px;
}

.contact_us_form-buttons .submit {
    text-decoration: none;
    background-color: #4CAF50;
    color: white;
}

.contact_us_form-buttons button[type="reset"] {
    background-color: #f44336;
    color: white;
}

.contact_us_form-buttons a:hover, button:hover {
    opacity: 0.9;
}

.contact_us_window {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.contact_us_window_content {
    background-color: #fefefe;
    margin: 20% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    font-weight: bold;
}

.contact_us_window_close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
}

#contact_us_window_show:target {
    display: block;
}

.resource-head h1 {
    text-align: center;
    margin-bottom: 10px;
}

.resource-head p {
    color: #444;
    text-align: center;
    margin-bottom: 30px;
}

.resource-container {
    margin: 0 auto;
    padding: 0 5%;
}

.resource-container h2 {
    text-align: left;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
    margin-bottom: 0px;
    margin-top: 20px;
}

.resource-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    margin-bottom: 30px;
}

.resource-item {
    width: 350px;
    margin-top: 30px;
    background-color: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.resource-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.resource-image {
    background-color: lightgray;
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.resource-image img {
    background-color: lightgray;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-info {
    padding: 15px;
}

.resource-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.resource-subtitle {
    font-size: 0.9em;
    color: #777;
    height: 60px;
    margin-bottom: 10px;
}

.resource-download-button {
    display: block;
    width: 95%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 14px;
    transition: background-color 0.3s;
}

.resource-download-button:hover {
    background-color: #0056b3;
}